import 'package:flutter/material.dart';
import 'package:online_study/bean/special.dart';
import 'package:online_study/theme/size.dart';

class SpecialItem extends StatefulWidget {
  Special data;

  SpecialItem(this.data);

  @override
  _SpecialItemState createState() => _SpecialItemState(data);
}

class _SpecialItemState extends State<SpecialItem> {
  Special data;

  _SpecialItemState(this.data);

  @override
  Widget build(BuildContext context) {
    return Container(
        margin: EdgeInsets.only(bottom: ThemeSize.height6),
        height: ThemeSize.height126,
        decoration: BoxDecoration(
            borderRadius: BorderRadius.all(Radius.circular(ThemeSize.width9)),
            image: DecorationImage(
                image: NetworkImage(
                    "https://flutter.github.io/assets-for-api-docs/assets/widgets/puffin.jpg"),
                fit: BoxFit.cover)));
  }
}
